home *** CD-ROM | disk | FTP | other *** search
/ Amiga Developer CD 2.1 / Amiga Developer CD v2.1.iso / Extras / Development / Example_Code_v37 / Libraries / Intuition / boopsi / hookface.asm < prev    next >
Encoding:
Assembly Source File  |  1996-03-17  |  336 b   |  26 lines

  1.  
  2. *  $Id: $
  3.  
  4.     INCLUDE 'exec/types.i'
  5.     INCLUDE 'utility/hooks.i'
  6.  
  7.     section    text,code
  8.  
  9.     xdef    _hookEntry
  10.     xdef    _stubReturn
  11.  
  12.  
  13. * entry interface for C code (large-code, stack parameters)
  14. _hookEntry:
  15.     move.l    a1,-(sp)
  16.     move.l    a2,-(sp)
  17.     move.l    a0,-(sp)
  18.     move.l    h_SubEntry(a0),a0    ; C entry point
  19.     jsr    (a0)
  20.     lea    12(sp),sp
  21. _stubReturn:
  22.     rts
  23.  
  24.  
  25.     end
  26.